package com.longxi.tianjintianbao;


import com.longxi.tianjintianbao.utils.LogUtils;

/**
 * @创建者 CSDN_LQR
 * @描述 全局常量类
 */
public class AppConst {

    public static final String TAG = "tianjintianbao";
    public static final int DEBUGLEVEL = LogUtils.LEVEL_ALL;//日志输出级别

    public static final String REGION = "86";

    public static String identification = "";//极光id

    public static String repairuserid = "";
    public static String repairusername = "";

    public static String  ERROR_TITLE="网络连接异常";
    public static String  ERROR_CONTEXT="请检查网络后重试";
    public static String  ERROR_BUTTON="重试";

    public static String EMPTY_TITLE="没有找到数据";
    public static String EMPTY_CONTEXT="下拉刷新试试";

    public static String PDIMAGEQZ = "inventimg\\";//盘点上传图片用的前缀

    public static int[] mTitle = {R.string.xwtz, R.string.wdsp, R.string.fbrw, R.string.fbbx, R.string.yfrw, R.string.bsbx, R.string.tscl, R.string.xj, R.string.pzjc,
            R.string.gzzg, R.string.fkdj, R.string.wpfx, R.string.sb, R.string.by, R.string.nhcb, R.string.rzyf, R.string.wdrw, R.string.wywx};

    public static int[] mImage = {R.mipmap.ic_new, R.mipmap.ic_approval, R.mipmap.ic_post_task, R.mipmap.ic_release_report,
            R.mipmap.ic_home_task, R.mipmap.ic_home_repair, R.mipmap.ic_home_complaint_handling, R.mipmap.ic_home_inspection, R.mipmap.ic_home_quality_check,
            R.mipmap.ic_home_work_reform, R.mipmap.ic_home_visitor_check_in, R.mipmap.ic_home_goods_release, R.mipmap.ic_home_equipment_management, R.mipmap.ic_home_maintenance, R.mipmap.ic_home_energy_stopwatch, R.mipmap.ic_home_rzyf,
            R.mipmap.ic_home_i_ssued_task, R.mipmap.ic_home_already_sent_repair};

    //intent 传值的key
    public static String TITLE = "TITLE";

    /*================== 广播Action begin ==================*/
    public static final String PATROL_MESSAGE_RECEIVER = "action.PatrolMessageReceiver";//刷新巡检上传数量广播
    public static final String CONNECTIVITY_CHANGE = "android.net.conn.CONNECTIVITY_CHANGE";//网络切换
    public static final String MESSAGE_RECEIVED_ACTION = "com.longxi.tianjintianbao.broadcast.MESSAGE_RECEIVED_ACTION";
    public static final String MESSAGE_REGISTRATION_ID = "com.longxi.tianjintianbao.broadcast.MESSAGE_REGISTRATION_ID";
    public static final String REFRESH_HOME_FRAGMENT = "action.PatrolMessageReceiver";
    /*================== 广播Action end ==================*/

    /*================== Intent key begin ==================*/
    //消息推送
    public static final String KEY_TITLE = "title";
    public static final String KEY_MESSAGE = "message";
    public static final String KEY_EXTRAS = "extras";

    //通用key
    public static final String BILLID = "BILLID";//单据id
    public static final String BILLDETAILID = "BILLDETAILID";//单据id
    public static final String STATE = "STATE";//状态
    public static final String ISSCAN = "ISSCAN";//通过扫码过来

    public static final String BUILDID = "BUILDID";//建筑id
    public static final String BUILD = "BUILD";//建筑名称

    public static String TYPID = "TYPID";//类别
    public static String NAME = "NAME";//名称

    public static String ASSETID = "ASSETID";//资产id

    //OA办公
    public static final String TYPENAME = "TYPENAME";//oa办公名称
    public static final String TYPE = "TYPE";//id
    public static final String CODE = "CODE";//id

    //报修
    public static final String REPAIRAREA = "REPAIRAREA";//客户区域0 公共区域1
    public static final String REGIONID = "REGIONID";//小区id
    public static final String REGIONNAME = "REGIONNAME";//维修区域
    public static final String REPAIRTYPE = "REPAIRTYPE";//维修类型
    public static final String REPAIRCATEGORY = "REPAIRCATEGORY";//维修类别

    //任务
    public static final String TASK = "TASK";//任务内容

    //投诉处理详情
    public static final String COMPLAINT = "COMPLAINT";//完成内容

    //巡检状态
    public static final String ISDRAFT = "ISDRAFT";//状态

    //建筑名称
    public static final String BUILDNAME = "BUILDNAME";//单据Activity之间传值key

    //整改列表 好像
    public static final String RECTIFICATIONLIST = "RECTIFICATIONLIST";

    //访客登记
    public static final String VISITOR = "VISITOR";//访客登记详情

    //物品放行
    public static final String GOODSTRAFFIC = "GOODSTRAFFIC";//物品放行详情

    //保养
    public static String MAINTAIN = "MAINTAIN";

    //抄表
    public static String METERTYPE = "METERTYPE";//单据Activity之间传值key
    public static String METERSCATEGORY = "METERSCATEGORY";//单据Activity之间传值key

    //品质检查
    public static String CLASSNAME = "CLASSNAME";//
    public static String CLASSID = "CLASSID";//
    public static String QUALITYITEM = "QUALITYITEM";//项目xx

    //人员选择
    public static String DEPTID = "DEPTID";//部门内部编码
    public static String MULTI_SELECTION = "MULTI_SELECTION";//是否可多选
    public static String PERSONNEL_LISTINTENT = "PERSONNEL_LISTINTENT";//人员列表数据

    public static String CHECK = "CHECK";//审批用

    public static String CHECKER = "CHECKER";//验房人
    public static String CHECKDEPT = "CHECKDEPT";//验房部门
    public static String CHECKDATE = "CHECKDATE";//验房日期

    public static String YFLX = "YFLX";//验房日期类型
    //入住验房
    public static final String YAN_FANG_RUZHU = "1";
    public static final String YAN_FANG_TUIZHU = "2";
    public static final String YAN_FANG_ZICHAN = "3";

    public static String APPROVAL = "APPROVAL";

    //新闻通知
    public static String NEWS = "NEWS";

    //
    public static final String HOUSECOMPENSATE = "HOUSECOMPENSATE";//资产赔偿

    public static final String RESULT_TYPE = "RESULT_TYPE";
    public static final String RESULT_STRING = "RESULT_STRING";
    public static final int RESULT_SUCCESS = 1;
    public static final int RESULT_FAILED = 0;

    /*================== Intent key end ==================*/

    public interface IntentRequstCode{
        int BASE=10000;
        //地址选择页面
        int ACTIVITY_REPAIR_CONTENT = BASE+1;

        //修改报修单
        int ACTIVITY_UPDATE_REPAIR_CONTENT = BASE+2;

        //人员选择页
        int ACTIVITY_PERSONNEL = BASE+3;

        //OA费用申请单
        int ACTIVITY_COST_APPLY = BASE+4;

        //OA应付款项申请单
        int ACTIVITY_COPE_WITH = BASE+5;

        //OA费用申请单
        int ACTIVITY_CHANGE_FORMAL = BASE+6;

        //OA费用申请单
        int ACTIVITY_COST_APPLY_DETAIL = BASE+7;

        //OA应付款项申请单
        int ACTIVITY_COPE_WITH_DETAIL = BASE+8;

        //OA费用申请单
        int ACTIVITY_CHANGE_FORMAL_DETAIL = BASE+9;

        //品质检查打分
        int ACTIVITY_QUALITY_SCORE = BASE+10;

        //品质整改保存
        int ACTIVITY_RECTIFICATION = BASE+11;

        //修改小区
        int ACTIVITY_SELECT_COMMUNITY = BASE+12;

        //品质整改项目
        int ACTIVITY_RECTIFICATION_DETAIL = BASE+13;

        //任务详情
        int ACTIVITY_TASK_DETAIL = BASE+14;

        //投诉详情
        int ACTIVITY_COMPLAINT_LIST = BASE+15;

        //访客登记
        int ACTIVITY_SIGN_VISITOR = BASE+16;

        //物品放行登记
        int ACTIVITY_SIGN_GOODS_RELEASE = BASE+17;

        //设备连接
        int ACTIVITY_PATROL_CONNECTION = BASE+18;

        //部门选择
        int ACTIVITY_DEPARTMENT_TO_PERSONNEL = BASE+19;

        //设备详情
        int ACTIVITY_PATROL_DETAIL = BASE+20;

        //动态输入
        int ACTIVITY_COMPLETE_ENTER = BASE+21;

        //切换账号
        int ACTIVITY_CHANGE_ACCOUNT = BASE+22;

        //离线模式
        int ACTIVITY_OFFLINE_MODE = BASE+23;

        //巡检记录
        int ACTIVITY_EQUIPMENT_INSPECTION = BASE+24;

        //保养记录
        int ACTIVITY_EQUIPMENT_MAINTAIN = BASE+25;

        //报修记录
        int ACTIVITY_EQUIPMENT_REPAIRACTIVITY = BASE+26;

        //保养详情
        int ACTIVITY_MAINTAIN_DETAIL = BASE+27;

        //巡检扫码列表
        int ACTIVITY_PATROL_SCAN_SEARCH = BASE+28;

        //
        int ACTIVITY_QUALITY_STATE_CHANGES = BASE+29;

        //
        int ACTIVITY_APPROVAL_DETAIL = BASE+30;

        //
        int ACTIVITY_APPROVAL_SAVE = BASE+31;
        //
        int ACTIVITY_TEST2 = BASE+32;
        //
        int ACTIVITY_CHECK_ROOM = BASE+33;
        //
        int ACTIVITY_ASSETS_CHECK = BASE+34;
        //
        int ACTIVITY_CHECKIN_FINISH_SAVE = BASE+35;
        //
        int ACTIVITY_ASSETS_REPAIR = BASE+36;
        //报修区域选择
        int ACTIVITY_REPAIR = BASE+37;
        //报修区域选择
        int ACTIVITY_SAVE_COMPLAINT = BASE+38;
        //报事报修完成
        int ACTIVITY_COMPLETE_EVENT_REPAIR = BASE+39;

        int ACTIVITY_TEST_SEARCH = BASE+40;

        //扫码
        int REQUEST_CODE_SCAN = BASE+110;

        //极光推送
        int JPUSH_INTERFACE_SEQUENCE = BASE+111;
    }
}
